package com.rajeshDyadav.spring.ioc.example03;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainClass {
    public static void main(String[] args) {
	ApplicationContext context = new ClassPathXmlApplicationContext("com/rajeshDyadav/spring/ioc/example03/raj.xml");
	
	Bean12 bean12 = (Bean12) context.getBean("bean12");		
	Bean34 bean34 = (Bean34) context.getBean("bean34");
	
	System.out.println(bean12.mergeString("One", "Two"));
	System.out.println(bean34.mergeString("Three", "Four"));
    }
}
